<template>
  <section class="plant-box">
    <plant-header :listData="modelValue" v-model="selectedItem"></plant-header>
    <div class="content-box">
      <header-swiper :modelValue="swiperData"></header-swiper>
      <ul class="list-box">
        <list-item
          v-for="item in listData"
          :key="item.t_content_pk"
          :modelValue="item"
        ></list-item>
      </ul>
    </div>
  </section>
</template>

<script>
import ListItem from "./list-item";
import HeaderSwiper from "@/components/public/header-swiper";
import {indexPlant} from "@/util/mixin";

export default {
  mixins: [indexPlant],
  components: {
    ListItem,
    HeaderSwiper,
  },
};
</script>

<style scoped>
.plant-box {
  width: 760px;
  margin-right: 15px;
}

.list-box {
  padding: 0px 5px;
  width: 460px;
}

.content-box {
  display: flex;
  align-items: center;
}

/deep/.swiper {
  height: 300px;
  width: 300px;
}

/deep/.swiper-pagination {
  bottom: 30px;
}

/deep/.swiper-slide {
  position: relative;
}
</style>